#pragma once

namespace xmlredirect
{
	class CXmlHandler : public xml::SAX2Handler
	{
	public:
		CXmlHandler(const pair<string, string>& _TagValue);
		virtual ~CXmlHandler();

		virtual void startElement(const XMLCh* const uri,const   XMLCh* const localname,const XMLCh* const qname,const Attributes& attributes);
		virtual void endElement(const XMLCh* const uri, const XMLCh* const localname,const XMLCh* const qname );
		virtual void characters(const XMLCh* const chars, const XMLSize_t length );

		bool IsOK();
	private:
		multimap<string, string> m_TagValues;
		string m_currentTagName;
		bool m_bValueIsFound;
	};
}